﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GameSchool.Models
{
	public class TeacherGameRegistrationRepository
	{
		TeacherGameRegistrationDBContextDataContext db = new TeacherGameRegistrationDBContextDataContext();
		public IEnumerable<TeacherGameRegistration> TeacherGameRegistrations()
		{
			return db.TeacherGameRegistrations;
		}

		public void Save()
		{
			db.SubmitChanges();
		}

		public void Add(TeacherGameRegistration newTeacherGameRegistration)
		{
			db.TeacherGameRegistrations.InsertOnSubmit(newTeacherGameRegistration);
		}

		public void Delete(TeacherGameRegistration deleteTeacherGameRegistrations)
		{
			db.TeacherGameRegistrations.DeleteOnSubmit(deleteTeacherGameRegistrations);
		}

	}
}